www.gusucode.com > puyuetian PHP 轻框架源码 v1.0PHP源码程序 > puyuetian PHP 轻框架源码 v1.0/puyuetianPHP_v1.0.20160316/puyuetianPHP_v1.0.20160316/install/index.php
<?php /* * HadSky - 安装程序 * 作者:蒲乐天 * QQ:632827168 */ date_default_timezone_set("PRC"); if (file_exists("install.locked")) { exit("install locked!"); } define('puyuetian', 'hadsky.com'); //基础框架加载 require dirname(__FILE__) . "/../puyuetian/variable.php"; require dirname(__FILE__) . "/../puyuetian/function.php"; //模板路径所在 $tpath = dirname(__FILE__) . '/template/'; $step = Cnum($_GET['step'], 1); switch ($step) { case 1 : $HTMLCODE .= template("{$tpath}step1.html", TRUE); break; case 2 : $HTMLCODE .= template("{$tpath}step2.html", TRUE); break; case 3 : require 'phpscript/install.php'; break; default : $error = "无效的参数!"; template("{$tpath}htmltip.html"); exit(); break; } template("{$tpath}frame.html");